react-server675fbba4
react-serverfilesdocssrcpagesja[[...slug]].static.mjs
docs/src/pages/ja/[[...slug]].static.mjsmjs405 B97ca851c
import { getPages } from "../../pages.mjs";

// See the en/ counterpart — async generator form of the same enumeration.
export default async function* () {
  yield { path: "/ja" };
  yield { path: "/ja/404" };

  for (const { category, pages } of getPages("/", "ja")) {
    yield { path: `/ja/${category.toLowerCase()}` };
    for (const { langHref: path } of pages) {
      yield { path };
    }
  }
}